package loginUI;

import UserUI.AdminController;
import UserUI.DepAdmController;
import UserUI.SchAdmController;

import UserUI.TeacherController;

import UserUI.DepAdmController;
import UserUI.SchAdmController;
import UserUI.StudentController;
import UserUI.TeacherController;

import VO.UserVO;

public class LoginController {
	private UserVO userVO;
	private static StudentController studentController;
	
	/**
	 * @param args
	 */

	
	public LoginController(UserVO userVO){
		this.userVO = userVO;
		init();
	}
	
	public void init(){
		switch(userVO.getRole()){
		case"0":
			new AdminController(userVO).jumpTo("main");break;
		case"1":
			new SchAdmController(userVO).jumpTo("main");break;
		case"2":
			new DepAdmController(userVO).jumpTo("main");break;
		case"3":
			new TeacherController(userVO).jumpTo("main");break;
		case"4":
			new StudentController(userVO).jumpTo("main");break;
		
			
		}
	}

}
